package frobagroup.entities.backstage;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by Tinsley on 2017/6/19.
 */
@Data
@NoArgsConstructor
@Document(collection = "carouselFigure")
public class CarouselFigure {

    public CarouselFigure(String pic, String createUid, String describe,boolean whichType){
        this.pic = pic;
        this.createTime = new Date();
        this.createUid = createUid;
        this.status = "inactive";
        this.describe = describe;
        this.whichType = whichType;
    }
    @Id
    private String id;
    private String pic;
    private String productId;
    private Date createTime;
    private Date updateTime;
    private String createUid;
    private String updateUid;
    private String status;
    private String describe;
    private boolean whichType;
    private String type;
}
